<?php

class FwModule_FwModuleController extends Fw_Main
{
	public function init()
	{
		$this->validateUser();
	}

	public function managerAction()
	{
		$dir = new DirectoryIterator(APPLICATION_PATH.'modules/');
		foreach ($dir as $fileinfo) {
			$fileName = $fileinfo->getFilename();
			if (!$fileinfo->isDot() && $fileinfo->isDir()) {
				$fwModule = substr($fileName, 2, 0);
				if(($fileName !== 'index') && ($fileName !== 'backoffice') && ($fileName !== '.svn')) {
					$dirs[].= $fileName;
					$this->view->module_name = $dirs;
				}
			}
		}
	}
	
	public function installAction()
	{
	}
	
	public function listAction()
	{
	}
}